<?php

namespace SisesporteAdmin\Filter;

use Zend\InputFilter\InputFilter;

class AlunoFilter extends InputFilter {

    public function __construct() {
        $this->add(array(
            'name' => 'noPessoa',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Nome não pode estar em branco'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'noMae',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'O nome da Mãe é obrigatório'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'dtNascimento',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Nome não pode estar em branco'),
                    )
                )
            )
        ));
        $this->add(array(
            'name' => 'nuCpf',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Nome não pode estar em branco'),
                    )
                )
            )
        ));

        $this->add(array(
            'name' => 'nuIdentidade',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Identidade não pode estar em branco'),
                    )
                )
            )
        ));

        
        $this->add(array(
            'name' => 'noMae',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Informe o nome da Mãe'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'noPai',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Informe o nome do Pai'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'nuCep',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Informe o CEP'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'noTelefoneFixo',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Informe um Telefone'),
                    )
                )
            )
        ));
        
        $this->add(array(
            'name' => 'noTelefoneMovel',
            'required' => true,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim')
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array('isEmpty' => 'Informe um Telefone'),
                    )
                )
            )
        ));
    }

}
